﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ESupervision.Models
{

    public class AttachementFile
    {
       
        public int AttachementFileID { get; set; }

        [Required]
        [MaxLength(255)]
        public string FileName { get; set; }

        [Required]
        [MaxLength(100)]
        public string ContentType { get; set; }
        
        public byte[] Content { get; set; }

        [InverseProperty("")]
        public virtual ICollection<Document> Documents { get; set; }
    }
}